package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallUserVip;
import com.appkubes.mall.core.po.MallUserVipExample;
import java.util.List;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallUserVipMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallUserVipSqlProvider.class, method="countByExample")
    long countByExample(MallUserVipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallUserVipSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallUserVipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_user_vip (app_key, user_key, ",
        "vip_level, version)",
        "values (#{appKey,jdbcType=VARCHAR}, #{userKey,jdbcType=VARCHAR}, ",
        "#{vipLevel,jdbcType=INTEGER}, #{version,jdbcType=INTEGER})"
    })
    int insert(MallUserVip record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallUserVipSqlProvider.class, method="insertSelective")
    int insertSelective(MallUserVip record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallUserVipSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="vip_level", property="vipLevel", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallUserVip> selectByExampleWithRowbounds(MallUserVipExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallUserVipSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="vip_level", property="vipLevel", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallUserVip> selectByExample(MallUserVipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallUserVipSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallUserVip record, @Param("example") MallUserVipExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_user_vip
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallUserVipSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallUserVip record, @Param("example") MallUserVipExample example);
}